package com.workstudy.workstudy.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.workstudy.common.annotation.Excel;
import com.workstudy.common.core.domain.BaseEntity;

/**
 * 系统开放时间设置对象 workstudy_opentimeset
 * 
 * @author ws
 * @date 2021-03-28
 */
public class WorkstudyOpentimeset extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 系统开放时间设置id */
    private Long opentimeSetId;

    /** 角色id */
    @Excel(name = "角色id")
    private Long roleId;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date endTime;

    private String roleName;

    public void setOpentimeSetId(Long opentimeSetId) 
    {
        this.opentimeSetId = opentimeSetId;
    }

    public Long getOpentimeSetId() 
    {
        return opentimeSetId;
    }
    public void setRoleId(Long roleId) 
    {
        this.roleId = roleId;
    }

    public Long getRoleId() 
    {
        return roleId;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("opentimeSetId", getOpentimeSetId())
            .append("roleId", getRoleId())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
                .append("roleName", getRoleName())
            .toString();
    }
}
